<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Modelo.Cliente;"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SLV</title>
<link rel="stylesheet" type="text/css" href="CSS/Base.css" />
<link rel="stylesheet" type="text/css" href="CSS/manterVeiculo.css" />
</head>
<body>
	<div id="logo">
	  <div id="idioma">
	  </div>
	</div>
	<div id="base">
	<div id='cssmenu'>
	<ul>
	   <li class='active'><a href='FrontController?cod=2'><span>Voltar</span></a></li>
	</ul>
	</div>
	<form action="FrontController" method="post">
		<div id="tab">
			<div id="pesquisa">
				<table border="0" cellspacing="0" >
					<tr>
						<td>Cpf</td> 
						<td><input type="text" name="cpf"/></td>
					</tr>
					<tr>
						<td><input type="submit" name="tipo" value="Pesquisar Cpf"/></td>
					</tr>
				</table>
				<hr>
			</div>
			<div id="tabela">
				<table>
					<tr>
				  		<td width="80px" >&nbsp;</td>
				  		<%
				  		String[] tabela = {"Cpf","Nome","Rg","Idade","Telefone","Email","Data","NumeroHab","NumerReg","EstadoEmi","ValidadeHab"};
				  		for(int i =0;i < tabela.length;i++){
						%>
						<td width="100px"><%=tabela[i]%></td>
						<%
						}
						%>
					</tr>
					<%
						Cliente c = (Cliente)request.getSession().getAttribute("cliente");
					if(c != null){
						  %>
							  <tr>
							    <td width="100px"><%=c.getCpf()%></td>
							    <td width="100px"><%=c.getNome()%></td>
							    <td width="100px"><%=c.getRg()%></td>
							    <td width="100px"><%=c.getIdade()%></td>
							    <td width="100px"><%=c.getTelefone()%></td>
							    <td width="100px"><%=c.getEmail()%></td>
							    <td width="100px"><%=c.getDataNasc()%></td>
							    <td width="100px"><%=c.getNumHab()%></td>
							    <td width="100px"><%=c.getNumReg()%></td>
							    <td width="100px"><%=c.getEstadoEmi()%></td>
							    <td width="100px"><%=c.getValidadeHab()%></td>							 
							  </tr>
							  <%
							}
							  %>
							  
				</table>
				<hr>
			</div>
		</div>
		<div id="opcoes">
			<hr>
			<table border="0" cellspacing="0" >
				<tr>
					<td><input type="submit" name="tipo" value="Cadastrar Cpf"/></td>
					<td><input type="submit" name="tipo" value="Alterar Cpf"/></td>
					<td><input type="submit" name="tipo" value="Excluir Cpf"/></td>
				</tr>
			</table>
			<hr>
		</div>
		</form>
		<div id="informacoes">	
			<div id='cssmenu2'>
				<ul><p>Iago Lucas Victor. All Rights Reserved 2013</p></ul>
			</div>
		</div>
	</div>
</body>
</html>